package com.demo.linkList.doubleLinkList;

public class Test {

    public static void main(String[] args) {
        DoubleLinkList list = new DoubleLinkList();
        list.addNodeSort(new Node(1, "第一个节点"));
        list.addNodeSort(new Node(2, "第二个节点"));
        list.addNodeSort(new Node(5, "第五个节点"));
        list.addNodeSort(new Node(4, "第四个节点"));
        list.addNodeSort(new Node(3, "第三个节点"));
        list.addNodeSort(new Node(6, "第六个节点"));
        list.deleteNode(8);
        list.showNode();
    }
}
